package com.zlq.cn.test;

import org.apache.commons.lang3.StringUtils;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@BasicDataFieldConfig(dataType = "materialType", sourceField = "materialTypeId")
public @interface MaterialTypeConvert {

    /**
     * Alias for {@link BasicDataFieldConfig#dataType}.
     */
    @AliasFor(annotation = BasicDataFieldConfig.class)
    String dataValueEl() default StringUtils.EMPTY;

    /**
     * Alias for {@link BasicDataFieldConfig#combination}.
     */
    @AliasFor(annotation = BasicDataFieldConfig.class)
    String combination() default StringUtils.EMPTY;

    /**
     * Alias for {@link BasicDataFieldConfig#combinationSeparator}.
     */
    @AliasFor(annotation = BasicDataFieldConfig.class)
    String combinationSeparator() default StringUtils.EMPTY;
}
